<?php 

	require_once ("seguranca.php");
header ('Content-type: text/html; charset=utf-8');	
	$usuario="";
	
	if (!empty($_POST['usuario'])){
		$usuario = $_POST['usuario'];
		$senha = $_POST['senha'];
		
		if(validar_usuario($usuario, $senha)){
			echo "sim";
		}
		else {
			echo "nao";
		}
	}
?>

	
<html> 

<body> 
<head> 

</head> 

<form method="POST" enctype="multipart/form-data"><center><table width="225" border="1" cellpadding="3"> 
<tr> 
<td colspan="2"><div align="center"><center><p><strong><font 
face=" helvetica,arial,geneva" size="2">Área esclusiva para usuários:</font></strong></td> 
</tr> 
<tr align="center"> 
<td><font FACE=" helvetica,arial,geneva" size="-1"><strong>Login:</strong></font> 

<td><input type="text" name="usuario" size="20"></td> 
</tr> 
<tr align="center"> 
<td><font FACE=" helvetica,arial,geneva" size="-1"><strong>Senha:</strong></font> 
<td><input type="password" name="senha" size="20"></td> 
</tr> 
<tr align="center"> 
<td colspan="2" align="center"><input type="submit" value="Login" ></td> 

</tr> 
</table> 
</center></div> 
</form> 

<p align="center"> </p> 

</body> 
</html> 
